/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表 /headquartersWarehousing/listRecordVehicle
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/headquartersWarehousing/listRecordVehicle`, params)
// 导出 /headquartersWarehousing/exportVehicle
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/headquartersWarehousing/exportVehicle`, params, {
  responseType: 'blob'
});
// 车辆配置五级选择
export const vehicleConfig = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, {
  params: {
    type: id,
    level: 6,
    ...params
  }
});

// 仓库选择列表
export const getWarehouseList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsTransfer/getWarehouseList`, {
  params
})

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
